<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">

    <body>

        <ui:composition template="./admin/index.xhtml">
            <ui:define name="content">
                <f:view>
                    <h:form>
                        <h1><h:outputText value="Create/Edit"/></h1>
                        <h:panelGrid columns="2">
                            <h:outputLabel value="Id:" for="id" />
                            <h:inputText id="id" value="#{complaintUser.complaint.id}" title="Id" required="true" requiredMessage="The Id field is required."/>
                            <h:outputLabel value="Subject:" for="subject" />
                            <h:inputText id="subject" value="#{complaintUser.complaint.subject}" title="Subject" />
                            <h:outputLabel value="Description:" for="description" />
                            <h:inputText id="description" value="#{complaintUser.complaint.description}" title="Description" />
                            <h:outputLabel value="Priority:" for="priority" />
                            <h:inputText id="priority" value="#{complaintUser.complaint.priority}" title="Priority" />
                            <h:outputLabel value="Status:" for="status" />
                            <h:inputText id="status" value="#{complaintUser.complaint.status}" title="Status" />
                            <h:outputLabel value="DateAdded:" for="dateAdded" />
                            <h:inputText id="dateAdded" value="#{complaintUser.complaint.dateAdded}" title="DateAdded" >
                                <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                            </h:inputText>
                            <h:outputLabel value="CategoryId:" for="categoryId" />
                            <h:selectOneMenu id="categoryId" value="#{complaintUser.complaint.categoryId}" title="CategoryId" >
                                <!-- TODO: update below reference to list of available items-->
                                <f:selectItems value="#{fixme}"/>
                            </h:selectOneMenu>
                            <h:outputLabel value="AccountId:" for="accountId" />
                            <h:selectOneMenu id="accountId" value="#{complaintUser.complaint.accountId}" title="AccountId" >
                                <!-- TODO: update below reference to list of available items-->
                                <f:selectItems value="#{fixme}"/>
                            </h:selectOneMenu>
                        </h:panelGrid>
                    </h:form>
                </f:view>

            </ui:define>


        </ui:composition>

    </body>
</html>
